package test;

public class Ascendant {
		
		
		/**
		 * @param args
		 */
		public static void main(String[] args) {
			int a = 12;
			int b = 34;
			int c = 6;
			
			
			
			////// Make a the smallest value.
			if (a>b) {
				// swap a et b
				swap(a,b,c);
				
				
			}
			if (a>c) {
				// swap a et c
				swap(a,c,b);
			}
			// Now I'm sure a is the smallest value.
			
			
			////// Make b smaller than c
			if(b>c) {
				// swap b et c
				swap(b,c,a);
			}

			System.out.println(a + " "+ b +" " +c);
			
		}

		static void swap(int a,int b, int c){
			
			
			a= a+b+c;
			b= a-b-c;
			c= a-b-c;
			a= a-b-c;
			
		  }
			 
			  
			  
			  
			  
			  
			  }

			  

	



